import express from 'express'

import cors from 'cors'

import './tcp_server/tcp_server.js'

import { route } from './router/index_router.js'

import { udpRouter } from './router/udp_router.js'

const app = express()

app.use(cors())

app.use('/api',route)

app.use('/api',udpRouter)

app.listen(3000,()=>console.log('http server run at 3000 port')) 